/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.inathitunzana.principles.inheritance;

import com.inathitunzana.principles.encapsulation.Impl.PersonImpl;
//import com.zuma.tp3assignment2.encapsulation.Person;

/**
 *
 * @author Student
 */
public class Employee extends PersonImpl {
        String departmentID;
        String departmentName;
        String jobTitle;
        String startDate;
        String endDate;

    public void SetDepartmentID(String deptID)
    {
        departmentID = deptID;
    }

    public void SetDepartmentName(String deptName)
    {
        departmentName = deptName;
    }

    public void SetJobTitle(String jobTitle)
    {
        this.jobTitle = jobTitle;
    }

    public void SetStartDate(String startDate)
    {
        this.startDate = startDate;
    }

     public void SetEndDate(String endDate)
    {
        this.endDate = endDate;
    }

    public void SetEmployeeID(String id) {
       super.SetPersonID(id);
    }

    public String GetEmployeeID() {
       return super.GetPersonID();
    }

    public void SetEmployeeFirstName(String firstName) {
         super.SetPersonFirstName(firstName);
    }

    public String GetEmployeeFirstName() {
        return " Employee First Name: " +  super.GetPersonFirstName();
    }

    public void SetEmployeeLastName(String lastName) {
       super.SetPersonLastName(lastName);
    }

    public String GetPEmployeeLastName() {
        return " Employee Last Name: " +  super.GetPersonLastName();
    }

    public void SetEmployeeGender(String gender) {
       super.SetPersonGender(gender);
    }

    public String GetEmployeeGender() {
        return super.GetPersonGender();
    }

    public void SetEmployeeDateOfBirth(String dateOfBirth) {
        super.SetPersonDateOfBirth(dateOfBirth);
    }

    public String GetEmployeeDateOfBirth() {
        return super.GetPersonDateOfBirth();
    }

    @Override
    public String toString()
    {
        return super.GetPersonID() +"|"+ super.GetPersonFirstName() +"|"+ super.GetPersonLastName() +"|"+ super.GetPersonGender() +"|"+ super.GetPersonDateOfBirth() +"|"+ departmentID +"|"+ departmentName +"|"+ jobTitle +"|"+ startDate  +"|"+ endDate;

    }
}
